CONTENTS | INDEX | PREV | NEXT
clearerr
NAME
clearerr - clear error associated with a file pointer
SYNOPSIS
#include <stdio.h>
void clearerr(fp); (MACRO)
FILE *fp;
FUNCTION
The clearerr() macro clears both the EOF flag and the ERROR
flag associated with a file pointer. When an ERROR occurs on
a file pointer further fread, fwrite, and some other calls will
not work (i.e. fail) until the ERROR indicator is cleared.
NOTE
refer to the file_pointer manual page for general information
INPUTS
FILE *fp; file pointer to clear the error on.
RESULTS
none, the error and EOF indicators are cleared
SEE ALSO
feof, ferror, rewind, fseek